package com.yf1706.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yf1706.bean.Dep;
import com.yf1706.service.DepService;

@Controller
@RequestMapping("dep")
public class DepController {
	@Autowired
	private DepService ds;

	@RequestMapping("findAllDep")
	@ResponseBody
	public List<Dep> findAllDep(){
		return ds.findAllDep();
	}
	
}
